projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2aa473
)
(Fcall_process): If code detection is necessary, call detect_coding
author
Kenichi Handa
<handa@m17n.org>
Mon, 24 Jun 2002 00:35:37 +0000
(
00:35
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 24 Jun 2002 00:35:37 +0000
(
00:35
+0000)
directly here.
src/callproc.c
patch
|
blob
|
history
diff --git
a/src/callproc.c
b/src/callproc.c
index 1a3ff6fcca903ccfedf3a65bedaa1e0649911559..ddc134658ca5f4c6f67e8fc8d61399cf729fc977 100644
(file)
--- a/
src/callproc.c
+++ b/
src/callproc.c
@@
-787,6
+787,12
@@
usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
size = decoding_buffer_size (&process_coding, nread);
decoding_buf = (char *) xmalloc (size);
+ if (CODING_REQUIRE_DETECTION (&process_coding))
+ {
+ detect_coding (&process_coding, bufptr, nread);
+ if (process_coding.composing != COMPOSITION_DISABLED)
+ coding_allocate_composition_data (&process_coding, PT);
+ }
if (process_coding.cmp_data)
process_coding.cmp_data->char_offset = PT;